package com.ruoyi.bizsys.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 奖励配置对象 award_config
 *
 * @author african-loan
 * @date 2022-06-22
 */

@Data
public class AwardConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 配置编号
     */
    @Excel(name = "配置编号")
    private String code;


    /**
     * 事件类型，字典枚举:award_event_type
     */
    @Excel(name = "事件类型，字典枚举:award_event_type")
    private String awardEventType;

    /**
     * 奖励内容，字典枚举:award_content
     */
    @Excel(name = "奖励内容，字典枚举:award_content")
    private String awardContent;

    /**
     * 奖励方式，字典枚举:：award_method
     */
    @Excel(name = "奖励方式，字典枚举:：award_method")
    private String awardMethod;


    /**
     * 奖励数值
     */
    @Excel(name = "奖励数值")
    private Integer awardValue;


    /**
     * 奖励次数
     */
    @Excel(name = "奖励次数")
    private Integer awardNum;

    /**
     * 配置金额
     */
    @TableField(exist = false)
    private BigDecimal proportionalAmount;


    /**
     * 状态 0停用 1启用
     */
    @Excel(name = "状态 0停用 1启用")
    private String state;


    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;


    /**
     * 创建者
     */
    @Excel(name = "备注")
    private String createBy;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "备注", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;


    /**
     * 更新者
     */
    @Excel(name = "备注")
    private String updateBy;


    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "备注", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

}